/**
 * Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.glc.hms.core.shiro;

import lombok.Data;

import java.io.Serializable;

/**
 * 自定义Shiro对象,可以携带更多用户信息
 */
@Data
public class ShiroUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户主键ID
     */
    private Long userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 登录名
     */
    private String loginName;

    /**
     * 所属部门
     */
    private Long deptId;

    /**
     * 所属部门
     */
    private String deptName;

    /**
     * 角色id
     */
    private Long roleId;

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * TODO 还可以添加权限等各种信息 提前封装到Shiro内存中，方便使用时提取，避免频繁查询数据库
     */

}
